# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=encodeshellcode
pkgver=0.1b
pkgrel=3
groups=('blackarch' 'blackarch-exploitation')
pkgdesc='This is an encoding tool for 32-bit x86 shellcode that assists a researcher when dealing with character filter or byte restrictions in a buffer overflow vulnerability or some kind of IDS/IPS/AV blocking your code.'
arch=('x86_64' 'aarch64')
url='http://packetstormsecurity.com/files/119904/Encode-Shellcode-0.1b.html'
license=('BSD')
source=("https://dl.packetstormsecurity.net/shellcode/$pkgname-$pkgver.tar.gz")
sha512sums=('9771bc0f7fcb598eab07c1173b4a92a203ba24177744c18ee652727bb7a90e24289d9f1c88798c15ce44d500437cc532d7dcb4fc56a36e37a0b4cd34517f1fa9')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/README"
}

